package com.smartstate.IOC.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartstate.IOC.entity.EquipMent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface DataMapper extends BaseMapper<EquipMent> {


    /**
     * 根据deviceId查询对应主键
     * @param deviceId
     * @return
     */
    @Select("select id from equipment where deviceId = #{deviceId}")
    String queryIdByDeviceId(@Param("deviceId") String deviceId);

}
